Centos7 : apache MPM Hint

# httpd -V | grep MPM

Server MPM:     prefork

CentOS provide 3 way modules, need to select only one.

  • prefork => default
  • worker
  • event

Change prefork to worker

# vi /etc/httpd/conf.modules.d/00-mpm.conf

#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so

LoadModule mpm_worker_module modules/mod_mpm_worker.so

#vi /etc/httpd/conf.modules.d/10-php.conf

<IfModule prefork.c>

  LoadModule php5_module modules/libphp5.so

</IfModule>

<IfModule worker.c>

  LoadModule php5_module modules/libphp5-zts.so

</IfModule>

but this way needs php version install for worker... warning...

libphp5-zts.so may be nedded additional install

centos7 default package is for profork..